home *** CD-ROM | disk | FTP | other *** search
- // Dynamic link library implementation of NeuroSolutions Transformer component
-
- #include "NSDLL.h"
-
- /****************************/
- /* Transform implementation */
-
- __declspec(dllexport) BOOL performTransform(
- DLLData *instance, // Pointer to instance data
- NSFloat *data, // Pointer to the buffered data
- int length, // Length of the buffer to be transformed
- int channel // Current channal number
- )
- {
- int i;
-
- for (i=0; i<length; i++)
- data[i] = 0.0f; // transform the data here
- // Return whether or not to display this channel
- return TRUE;
- }
-
- /******************************************/
- /* Management of instance data (OPTIONAL) */
- /*
- __declspec(dllexport) DLLData *allocTransform(
- int length, // Length of the buffer to be transformed
- int channels // Number of channels to be transformed
- )
- {
- DLLData instance=NULL;
- return instance;
- }
-
- __declspec(dllexport) void freeTransform(DLLData *instance)
- {
- if (instance)
- free(instance);
- }
- */
-